<div class="fl kf-center">
	<div class="bk-a">
		<br />
		<div id="title">
			<a href="index.php">首页</a>><a href="memberPlan.php">会员中心</a>
		</div>
		<p class="member">
			会员忠诚计划
		</p>
		<div class="bk-l"></div>

		<!--会员中心开始-->
		<div class="nTab">
			<div class="TabTitle">
				<ul id="myTab">
					<li class="normal">
						<a href="?r=user/member">个人信息</a>
					</li>
					<li class="active">
						<a href="?r=order/list">我的预定</a>
					</li>
				</ul>
			</div>
			<button class="zc-button">
				<a href="?r=user/logout">退出会员中心</a>
			</button>
			<div class="TabContent">
				<!--选项卡2-->
					<table style="width:520px;margin-top:10px;margin-left:10px;" cellpadding="0" cellspacing="0">
						<tr>
							<td class="tab2-td"><b>预定编号</b></td>
							<td class="tab2-td"><b>房型</b></td>
							<td class="tab2-td"><b>预定价格</b></td>
							<td class="tab2-td"><b>预定状态</b></td>
							<td class="tab2-td"><b>操作</b></td>
						</tr>
						<?php 
							foreach ($orderList as $key => $value) {
								echo '<tr height="30">';
									echo '<td class="tab2-td">'.$value["order_no"].'</td>';
									echo '<td class="tab2-td">'.$value["room_name"].'</td>';
									echo '<td class="tab2-td">'.$value["price"].'</td>';
									echo '<td class="tab2-td">';
									if ($value["status"] == 1)
										echo '等待付款';
									else if ($value["status"] == 2)
										echo '已付款';
									else
										echo '已取消';
									echo '</td>';
									echo '<td class="tab2-td">';
										echo '<a href="?r=order/detail&id='.$value["id"].'">查看</a>&nbsp;';
										if ($value["status"] == 1)
										{
											echo '<a href="?r=order/pay&id='.$value["id"].'">付款</a>&nbsp;';
											echo '<a href="?r=order/cancel&id='.$value["id"].'" >取消</a>';
										}
										echo '</td>';
								echo '</tr>';
							}
						?>
					</table>
				<!--选项卡结束-->
			</div>
		</div>
	</div>
</div>